#! /bin/sh
echo
echo '*** Distributed execution of the Routing example simulation ***'
echo 'IMPORTANT: If you'"'"'re running the simulation under the Qtenv GUI,'
echo 'you'"'"'ll have to click [Run] in all windows to start the simulation.'
echo 'See Readme.txt for more info.'
echo

rm -rf comm
mkdir comm
mkdir comm/read

# make sure HOSTNAME is exported as some distros no longer export it by default
if test "$HOSTNAME" = ""; then
  export HOSTNAME=`hostname`
fi

export NEDPATH=..
../routing -p0 --parsim-num-partitions=2 $* > routing-0.log &
../routing -p1 --parsim-num-partitions=2 $* > routing-1.log &


